package com.fayuan.nocv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@TableName("hesuan")
public class HeSuan {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String username;
    private Integer age;
    private String phone;
    private String card;
    private String type;
    private String result;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Integer doctorId;
    @TableField(exist = false)
    private String doctor;
}
